﻿using System;
using System.Collections.Generic;
using System.Data.SqlServerCe;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InnovTech.Persistence.NHibernate.Test.TestObjects
{
    public class TestGenerator : NHDatabaseGeneratorBase<TestDababaseInfo>
    {
        public TestGenerator(ISessionFactoryBuilder<TestDababaseInfo> builder)
            : base(builder)
        {
        }

        protected override void CreateEmptyDatabase(string connectionStr)
        {
            SqlCeEngine engine = new SqlCeEngine(connectionStr);
            engine.CreateDatabase();
        }
    }
}
